package butines.core.game.steering;

import java.util.Collection;

import butines.core.game.Vehicle;
import butines.core.math.Vector2f;

public class ObstacleAvoidanceBehavior extends AbstractBehavior {
	
	private Vehicle owner;
	private Collection<Vehicle> obstacles;
	private Vector2f steeringForce;

	public ObstacleAvoidanceBehavior(Vehicle owner) {
		this.owner = owner;
	}
	
	public Collection<Vehicle> getObstacles() {
		return obstacles;
	}

	public void setObstacles(Collection<Vehicle> obstacles) {
		this.obstacles = obstacles;
	}
	public Vector2f calculate() {
		return steeringForce = obstacleAvoidance(owner, obstacles);
	}

	public Vehicle getOwner() {
		return owner;
	}

	public Vector2f getSteeringForce() {
		return steeringForce;
	}

}
